package com.gshrms.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gshrms.system.domain.dto.AddSubAdminDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 子管理员管理组
 * </p>
 *
 * @author laoyang
 * @since 2025-03-20
 */
@Getter
@Setter
@TableName("sys_sub_admin")
@ApiModel(value = "SysSubAdmin对象", description = "子管理员管理组")
public class SysSubAdmin implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("管理组Id")
    @TableId(value = "gm_id", type = IdType.AUTO)
    private Long gmId;

    @ApiModelProperty("管理组名称")
    private String gmName;

    @ApiModelProperty("数据权限范围(1:相同,2:不同)")
    private Integer gmAuthorityType;

    @ApiModelProperty("菜单权限范围(1:相同,2:不同)")
    private Integer gmMenuType;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新人")
    private String updateUser;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private List<AddSubAdminDto> addSubAdminDtos;


}
